feat(layout): add azerty_AFNOR layout (@JacquesHumule)#7376
feat(layout): add azerty_AFNOR layout (@JacquesHumule)#7376Miodec merged 5 commits intomonkeytypegame:masterfrom
Conversation
|
Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes. |
There was a problem hiding this comment.
Pull request overview
This PR adds support for the AZERTY AFNOR (NF Z71-300) keyboard layout, the French national standard keyboard layout.
Changes:
- Added the layout definition file
azerty_AFNOR.jsonwith ISO format specifications - Registered the layout name in the schema enum
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/schemas/src/layouts.ts | Adds "azerty_AFNOR" to the LayoutNameSchema enum |
| frontend/static/layouts/azerty_AFNOR.json | Defines the complete AZERTY AFNOR keyboard layout with all key mappings |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/schemas/src/layouts.ts
Outdated
| "persian_standard_colemak", | ||
| "ergo_split46", | ||
| "tamil99", | ||
| "azerty_AFNOR", |
There was a problem hiding this comment.
The layout name "azerty_AFNOR" is placed at the end of the enum list (line 235), but following the existing convention in the codebase, it should be placed immediately after "azerty" (around line 47). This follows the pattern where "bepo_AFNOR" is placed right after "bepo" on lines 48-49.
| [":", "…", "·"], | ||
| [";", "=", "≃", "≠"] | ||
| ], | ||
| "row5": [[" ", " ", " ", " "]] |
There was a problem hiding this comment.
The row5 definition includes four identical space characters. While this is technically valid according to the schema, it's unusual compared to other layouts in the codebase which typically use a single space character. Consider simplifying this to [[" "]] unless there's a specific reason for the AFNOR standard to define multiple space variants at different modifier levels.
| "row5": [[" ", " ", " ", " "]] | |
| "row5": [[" "]] |
Description
Add azerty AFNOR layout.
Standard
Some diacritics are missing because of the lack of a proper non-diacritic symbols that describes it.
Checks
qs,qsaorqsrinstead of JQuery selectors.packages/schemas/src/languages.tsfrontend/src/ts/constants/languages.tsfrontend/static/languagespackages/schemas/src/themes.tsfrontend/src/ts/constants/themes.tsfrontend/static/themespackages/schemas/src/layouts.tsfrontend/static/layoutsfrontend/static/webfontspackages/schemas/src/fonts.tsfrontend/src/ts/constants/fonts.tsCloses #